home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 27 / Mac Magazin and MacEasy Magazine CD - Issue 27.iso / Spiele & Edutainment / Star Flick 1.0.2 / CT / Source / ObjectWindow.h < prev    next >
Text File  |  1993-04-28  |  1KB  |  36 lines

  1. // ObjectWindow.h
  2.  
  3. #pragma once
  4.  
  5. #define MyWindowID    1000
  6.  
  7. typedef struct {
  8.     CWindowRecord     theWin;
  9.     Boolean            ownStorage;
  10.     Boolean            floating;
  11.     void        (*Dispose)(WindowPtr theWin);
  12.     void        (*Update)(WindowPtr theWin);
  13.     void        (*Activate)(WindowPtr theWin);
  14.     void        (*HandleClick)(WindowPtr theWin, Point where);
  15.     void        (*Draw)(WindowPtr theWin);
  16.     void        (*Idle)(WindowPtr theWin, EventRecord *theEvent);
  17.     void        (*ProcessKey)(EventRecord *theEvent);
  18.     void        (*Save)(WindowPtr theWin, SFReply *itsReply);
  19. } ObjectWindowRecord, *ObjectWindowPtr;
  20.  
  21. WindowPtr InitObjectWindow(short resID, ObjectWindowPtr theStorage, Boolean isFloating);
  22.  
  23. void DisposeObjectWindow(WindowPtr theWin, Boolean disposeFlag);
  24. void DefaultUpdate(WindowPtr theWin);
  25. void DefaultActivate(WindowPtr theWin);
  26. void DefaultHandleClick(WindowPtr theWin, Point where);
  27. void DefaultDispose(WindowPtr theWin);
  28. void DefaultDraw(WindowPtr theWin);
  29.  
  30.  
  31. WindowPtr FrontDocument(void);
  32. WindowPtr FrontFloating(void);
  33. void SelectDocument(WindowPtr theWindow);
  34. void SelectFloating(WindowPtr theWindow);
  35. void LocateWindows(void);
  36.